This article describes how to pass multiple parameters through the html: list tag in thinkphp. It is of great practical value in processing parameter transfer. For more information, see
This article describes how to pass multiple parameters through
This article describes how to pass multiple parameters through the html: list tag in thinkphp. it is of great practical value in processing parameter transfer. For more information, see ThinkPHP.
This article describes how to solve the problem of
This change is effective for thinkphp 2.0 and not tested for thinkphp 3.0.This file is mainly used to modify the _ list method of/Thinkphp/Lib/Think/Template/Taglib/TabLibHtml. class. php.The red code is newly added.Multiple parameters are separated
The example of this article tells about the thinkphp of the Html:list label transmission of multiple parameters of the solution, shared for everyone to reference. The specific analysis is as follows:
This change is valid for the Thinkphp 2.0
Thinkphp's problem has been fixed for a long time, but I still don't know. you can take a look at the controller code:
Public function testt (){
// $ Title = "exercise book ";
// $ Content ='
'. $ _ GET ['name'];
// $ This-> assign ('title', $ title
Code in the controller:
Public Function Testt () {
$title = "Practice book";
$content = '
'. $_get[' name '];
$this->assign (' title ', $title);
$User = M (' name ');
$list = $User->select ();
$this->assign (' list ', $list);
$this->assign ("title",
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn to write your own operations related to data retrieval through TP. I would like to share it with you. I think it is good. Support
First, you need to
Add a file under the Thinkphp\lib\think\template\taglib\ directory named: TagLibZpass.class.php
TagLibZpass.class.php:
/* ZPass custom Label design by ZPass 16852868@qq.com, please do not add QQ friends--! */
Class
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.